package practice;


public class Hannuta {
	public final static void hannuota(int x, String string, String string2,
			String string3) {
		if (x >= 1) {
			hannuota(x - 1, string, string3, string2);
			System.out.println(string + "---->" + string3);
			hannuota(x - 1, string2, string, string3);
		}
	}

	public static void main(String[] args) {
		hannuota(5, "A", "B", "C");
	}

}
